package com.chatroom.service;

import com.chatroom.model.ChatRoom;
import com.chatroom.model.User;

import java.util.List;
import java.util.Optional;
import java.util.Set;

public interface ChatRoomService {
    ChatRoom createChatRoom(String name, User creator);
    Optional<ChatRoom> findByRoomCode(String roomCode);
    List<ChatRoom> getAllChatRooms();
    void addUserToChatRoom(ChatRoom chatRoom, User user);
    Set<User> getChatRoomMembers(ChatRoom chatRoom);
    boolean existsByRoomCode(String roomCode);
} 